<template>
  <view class="content">
    个人中心：{{ user.num }}
    <button @click="goBack">跳转返回</button>
  </view>
</template>

<script setup lang="ts">
import { useUserStore } from '@/store'
import { onShow } from '@dcloudio/uni-app'

onShow(() => {
  const pages = getCurrentPages()
  console.log('打印***pages', pages)
  console.log('个人中心页面显示')
})

const user = useUserStore()

const goBack = () => {
  uni.navigateBack()
}
</script>

<style lang="scss" scoped></style>
